//a simple class contains 2 dots in a move
class Move
{
	//first dot
	public int fDot;
	
	//second dot
	public int sDot;
	
	int v;
	
	public Move(int fd, int sd, int v)
	{
		this.fDot = fd;
		this.sDot = sd;
		this.v = v;
	}
}